<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
export default {
    mixins: [Vue.prototype.$vFN.Mixins.Base, Vue.prototype.$vFN.Mixins.Edit],
    components: {
        SelectImageRadio: async () =>
            Vue.extend(
                await Vue.prototype.$vFN.Components.Base.SelectImageRadio()
            ),
    },
    data() {
        return {
            appWindow: window,
            form: {
                name: "",
                integralIcon: "",
                isDefault: "",
            },

            // 页面接口地址
            apiUrl: {
                create: "mall-site-portal/member-integral-type/create",
                update: "mall-site-portal/member-integral-type/update",
                detail: "mall-site-portal/member-integral-type/getItem",
            },

            iconDefaultList: [
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style1.png",
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style2.png",
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style3.png",
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style4.png",
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style5.png",
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style6.png",
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style7.png",
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style8.png",
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style9.png",
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style10.png",
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style11.png",
                Vue.prototype.$STATIC_RESOURCE_DOMAIN+"images/default-icon-property-style12.png",
            ],
        };
    },
    methods: {
        // 初始化
        async init() {
            // 初始化数据
            await this.mixinEdit_editBoxInit({
                model: "form",
                id: this.id,
            });
        },

        addIcon(item) {
            this.form.integralIcon = item
        },

        
    },
    watch: {},
    mounted() {
        this.init();
    },
    activated() {},
};
</script>
